import { apiDynamicLabelList } from '@/request/petCircleUtil/dynamic'

let SearchData = [
    {
        field: 'dynamicTitle',
        label: '动态标题',
        placeholder: '请输入',
        required: false,
        rules: [],
        type: 'Input',
    },
    {
        field: 'nickName',
        label: '用户昵称',
        placeholder: '请输入',
        required: false,
        rules: [],
        type: 'Input',
    },
    {
        field: 'dynamicId',
        label: '编号',
        placeholder: '请输入',
        required: false,
        stringMode: true,
        type: 'InputNumber',
    },
    {
        field: 'labelId',
        label: '动态标签',
        placeholder: '请选择',
        required: false,
        rules: [],
        type: 'Select',
        txt: "labelName",
        value: "labelId",
        api: apiDynamicLabelList,
    },
    {
        field: 'editTime',
        label: '编辑时间',
        placeholder: '请选择',
        required: false,
        rules: [],
        type: 'RangePicker',
        showTime: true
    },
    {
        field: 'auditState',
        label: '审核状态',
        placeholder: '请选择',
        required: false,
        rules: [],
        type: 'Select',
        options: [
            { value: null, label: "全部" },
            { value: "1", label: "通过" },
            { value: "0", label: "驳回" },
            { value: "2", label: "待审核" },
        ],
    },
    {
        field: 'releaseState',
        label: '发布状态',
        placeholder: '请选择',
        required: false,
        rules: [],
        type: 'Select',
        options: [
            { value: null, label: "全部" },
            { value: "1", label: "已发布" },
            { value: "0", label: "未发布" },
        ],
    },
    {
        field: 'province',
        label: '省',
        placeholder: '请输入',
        required: false,
        rules: [],
        type: 'Input',
    },
    {
        field: 'address',
        label: '详细地址',
        placeholder: '请输入',
        required: false,
        rules: [],
        type: 'Input',
    },
    {
        field: 'expectReleaseTime',
        label: '预计发布时间范围',
        placeholder: '请选择',
        required: false,
        rules: [],
        type: 'RangePicker',
        showTime: true
    },
    {
        field: 'actualReleaseTime',
        label: '实际发布时间范围',
        placeholder: '请选择',
        required: false,
        rules: [],
        type: 'RangePicker',
        showTime: true
    },
    {
        field: 'dynamicType',
        label: '动态类型',
        placeholder: '请选择',
        required: false,
        rules: [],
        type: 'Select',
        options: [
            { value: null, label: "全部" },
            { value: "1", label: "运营动态" },
            { value: "2", label: "普通动态" },
        ],
    },
    {
        field: 'shareNum',
        label: '转发数范围',
        required: false,
        rules: [],
        type: 'NumRange',
        minKey: 'minShareNum',
        maxKey: 'maxShareNum',
        otherConfig:{
            precision:0,
            max:Infinity,
            min:0
        }
    },
    {
        field: 'comments',
        label: '评论数范围',
        required: false,
        rules: [],
        type: 'NumRange',
        minKey: 'minComments',
        maxKey: 'maxComments',
        otherConfig:{
            precision:0,
            max:Infinity,
            min:0
        }
    },
    {
        field: 'likeNum',
        label: '点赞数范围',
        required: false,
        rules: [],
        type: 'NumRange',
        minKey: 'minLikeNum',
        maxKey: 'maxLikeNum',
        otherConfig:{
            precision:0,
            max:Infinity,
            min:0
        }
    },
    {
        field: 'collectNum',
        label: '收藏数范围',
        required: false,
        rules: [],
        type: 'NumRange',
        minKey: 'minCollectNum',
        maxKey: 'maxCollectNum',
        otherConfig:{
            precision:0,
            max:null,
            min:0
        }
    },
    {
        field: 'dynamicText',
        label: '动态内容',
        placeholder: '请输入',
        required: false,
        rules: [],
        type: 'Input',
    },
]

export default SearchData
